{% extends "main/index.html" %}

{% load i18n %}
{% block title %}
<title>documento</title>
{% endblock %}
{% block content %}

    <div class="titulo_contenedor">
	Select colaborators
    </div>
    <div class="cuerpo_contenedor">
    
        <form action="/documents/add_colab/{{doc.numDoc}}/" method="post">
            <label for="add_colabs">Add colaborators</label>
            <select name="add_colabs" id="add_colabs" multiple="multiple">
            {% for i in results %}
            	{% if i.1 %}
            	<option value="{{i.0}}"
						selected="selected">{{i.0}}</option>
				{% else %}
				<option value="{{i.0}}">{{i.0}}</option>
				{% endif %}		
			{% endfor %}	
            </select>
            <input type="hidden" name="adding_colabs" id="adding_colabs" value="True"/>
            <input type="submit" value="Select" class="boton_1"/>
        </form>

        <a href="/documents/view_document/{{doc.numDoc}}/comments">Volver a la vista del documento</a>
    </div>
    <div class="fondo_contenedor"> </div>
{% endblock %}	
